/*
 * Range.cpp
 *
 *  Created on: 22 Aug 2011
 *      Author: Allan
 */

#include "Range.h"

// C++ includes
#include <cmath>

const vector<double> Range(double init, double end, double step)
{
	unsigned points = 1 + ceil((end - init)/step);
	
	vector<double> range(points);
	
	for(unsigned i = 0; i < range.size(); ++i)
		range[i] = init + i * step;
	
	return range;
}
